package com.example.swim.Service;


import com.example.swim.Dao.AdminDao;
import com.example.swim.Pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author LiYa
 * @create 2022-07-14 14:13
 */
@Transactional
@Service
public class AdminService {
    @Autowired
    AdminDao adminDao;
    public boolean findAdmin(Admin admin)
    {
        return adminDao.findAdmin(admin)!=null;
    }
}
